﻿<Window x:Class="PCSWpfClient.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" Height="550" Width="800">
    <Window.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary  Source="Resources\MainWindowResources.xaml" />
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>

    </Window.Resources>
    <Window.DataContext>
        <Binding Path="MainVM" Source="{StaticResource MainViewModelLocatorDataSource}"/>
    </Window.DataContext>

    <DockPanel>
        <DockPanel DockPanel.Dock="Top">
            <Menu>
                <MenuItem Header="Action">
                    <MenuItem Header="Price" Command="{Binding Path=PriceCommand}"/>
                </MenuItem>
            
            </Menu>
        </DockPanel>
        <Grid Margin="4">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*" />  
            </Grid.ColumnDefinitions>
            
                <TabControl IsSynchronizedWithCurrentItem="True" ItemsSource="{Binding Path=WorkItems}" 
                            ItemTemplate="{StaticResource ClosableTabItemTemplate}" 
                            Margin="4"  />
            
        </Grid>
    </DockPanel>
</Window>
